import request from '../utils/request';


//获取毕业人数分布数据
export function getEmploymentAnalysisService(params) {
  return request.get('/employment/analysis', {
    params: { ...params }
  });
}
//获取研究生人数分布数据,已经剥开axios的外层data数据
export function getPostgraduateAnalysisService(params) {
  return request.get('/employment/postgraduate', {
    params: { ...params }
  });

}

//按照年份学院专业查询就业人数
// export function getEmploymentStatusService(params) {
//   return request.get('/employment/status', {
//     params: { ...params }
//   });
// }

//导出Excel表格数据
/*
 await axios.get('/api/v1/employment/export', {
          responseType: 'blob'
        });
*/
export function exportEmploymentExcelService() {
  return request.get('/employment/export', {
    responseType: 'blob'
  });
}